<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>公众号每日选题推荐</title>
    <style>
        * {margin: 0;padding: 0;box-sizing: border-box;font-family: "微软雅黑", "PingFang SC", sans-serif;}
        body {background-color: #f8faf9;padding: 15px;}
        .topic-card {max-width: 600px;margin: 0 auto;background: white;border-radius: 18px;box-shadow: 0 3px 12px rgba(143,208,187,0.15);overflow: hidden;border: 1px solid #f0f7f4;}

        .card-header {padding: 20px 22px;background: linear-gradient(135deg, #f0fdf4, #d1fae5);text-align: center;}
        .header-title {font-size: 22px;font-weight: bold;color: #059669;}
        .header-tag {display: inline-block;margin-top: 8px;background: white;color: #059669;font-size: 13px;padding: 3px 12px;border-radius: 20px;}

        .date-section {padding: 20px 22px;border-bottom: 1px solid #f0f7f4;background-color: #ffffff;}
        .calendar {display: flex;align-items: center;justify-content: space-between;margin-bottom: 18px;}
        .calendar-left {display: flex;align-items: center;gap: 12px;}
        .calendar-date {width: 60px;height: 60px;border-radius: 12px;background: linear-gradient(135deg, #059669, #047857);color: white;display: flex;flex-direction: column;align-items: center;justify-content: center;}
        .date-num {font-size: 24px;font-weight: bold;line-height: 1;}
        .date-week {font-size: 12px;}
        .calendar-info {color: #1e293b;}
        .info-year {font-size: 16px;font-weight: 500;}
        .info-term {font-size: 14px;color: #059669;margin-top: 2px;}

        .huangli {border-radius: 12px;overflow: hidden;}
        .huangli-header {background: linear-gradient(135deg, #fef3c7, #fde68a);padding: 12px 15px;display: flex;align-items: center;gap: 8px;}
        .huangli-icon {width: 24px;height: 24px;background-color: #d97706;border-radius: 50%;color: white;display: flex;align-items: center;justify-content: center;font-size: 14px;}
        .huangli-title {font-size: 16px;font-weight: bold;color: #92400e;margin: 0;}
        
        .huangli-content {display: grid;grid-template-columns: 1fr 1fr;gap: 1px;background-color: #f0f0f0;}
        .huangli-item {padding: 14px 15px;background-color: white;display: flex;flex-direction: column;gap: 4px;transition: background-color 0.3s;}
        .huangli-item:hover {background-color: #f8fafc;}
        
        .item-label {font-size: 13px;padding: 2px 6px;border-radius: 4px;display: inline-block;}
        .label-ganzhi {background-color: #f0fdf4;color: #065f46;}
        .label-chongsha {background-color: #dbeafe;color: #1e40af;}
        .label-yi {background-color: #dcfce7;color: #166534;}
        .label-ji {background-color: #fee2e2;color: #b91c1c;}
        .label-jishi {background: linear-gradient(135deg, #10b981, #059669);color: white;font-weight: 500;}
        
        .item-label.label-taishen {background: linear-gradient(135deg, #8b5cf6, #7c3aed);color: white;font-weight: 500;}
        .taishen-container {display: flex;align-items: center;gap: 10px;margin-top: 4px;}
        .taishen-icon {width: 32px;height: 32px;background: linear-gradient(135deg, #f3e8ff, #ede9fe);border-radius: 8px;display: flex;align-items: center;justify-content: center;color: #7c3aed;font-size: 18px;}
        .taishen-info {flex: 1;}
        .taishen-location {font-size: 15px;font-weight: 500;color: #5b21b6;}
        .taishen-tip {font-size: 12px;color: #6b7280;}
        
        .jishi-container {display: flex;gap: 8px;margin-top: 4px;}
        .jishi-card {flex: 1;background: linear-gradient(135deg, #f0fdf4, #d1fae5);border-radius: 8px;padding: 8px 10px;text-align: center;box-shadow: 0 2px 4px rgba(16,185,129,0.1);}
        .jishi-time {font-size: 14px;font-weight: 500;color: #065f46;}
        .jishi-tip {font-size: 12px;color: #059669;}
        
        .item-value {font-size: 14px;color: #1e293b;line-height: 1.4;}
        .value-ji {color: #b91c1c;}

        .topic-list {padding: 25px 22px;display: flex;flex-direction: column;gap: 18px;}
        .topic-item {background: #f8fafc;padding: 18px;border-radius: 12px;border-left: 4px solid #059669;transition: box-shadow 0.3s;}
        .topic-item:hover {box-shadow: 0 2px 8px rgba(143,208,187,0.2);}
        .topic-domain {font-size: 14px;color: #059669;font-weight: 500;margin-bottom: 8px;}
        .topic-title {font-size: 16px;color: #1e293b;line-height: 1.6;}

        .guide {border-top: 1px solid #f0f7f4;padding: 22px 22px;background-color: #fdfdfe;}
        .guide-title {font-size: 16px;font-weight: bold;color: #1e293b;margin-bottom: 15px;text-align: center;}
        .guide-list {display: flex;flex-direction: column;gap: 12px;}
        .guide-item {font-size: 15px;color: #475569;display: flex;align-items: center;gap: 8px;}
        .guide-icon {width: 20px;height: 20px;border-radius: 50%;background-color: #059669;color: white;font-size: 12px;display: flex;align-items: center;justify-content: center;flex-shrink: 0;}
        .guide-btn {display: inline-block;background-color: #059669;color: white;font-weight: bold;padding: 6px 16px;border-radius: 8px;text-decoration: none;margin-left: 4px;transition: background-color 0.3s;}
        .guide-btn:hover {background-color: #047857;}
    </style>
</head>
<body>
    <div class="topic-card">
        <div class="card-header">
            <div class="header-title">公众号每日选题推荐</div>
            <div class="header-tag">日更灵感 · 直接套用</div>
        </div>

        <div class="date-section">
            <div class="calendar">
                <div class="calendar-left">
                    <div class="calendar-date">
                        <div class="date-num" id="dateNum">10</div>
                        <div class="date-week" id="dateWeek">星期二</div>
                    </div>
                    <div class="calendar-info">
                        <div class="info-year" id="dateYear">2025年10月</div>
                        <div class="info-term" id="dateTerm">寒露后6天</div>
                    </div>
                </div>
            </div>

            <div class="huangli">
                <div class="huangli-header">
                    <div class="huangli-icon">历</div>
                    <h3 class="huangli-title">今日黄历</h3>
                </div>
                <div class="huangli-content">
                    <div class="huangli-item">
                        <span class="item-label label-ganzhi">干支</span>
                        <span class="item-value" id="hlGanZhi">乙巳年 丙戌月 癸酉日</span>
                    </div>
                    <div class="huangli-item">
                        <span class="item-label label-chongsha">冲煞</span>
                        <span class="item-value" id="hlChongSha">冲兔(丁卯)煞东</span>
                    </div>
                    <div class="huangli-item">
                        <span class="item-label label-yi">宜</span>
                        <span class="item-value" id="hlYi">嫁娶、祭祀、祈福、求嗣</span>
                    </div>
                    <div class="huangli-item">
                        <span class="item-label label-ji">忌</span>
                        <span class="item-value value-ji" id="hlJi">开市、入宅、安葬、动土</span>
                    </div>
                    <div class="huangli-item" style="grid-column: 1 / -1;">
                        <span class="item-label label-jishi">吉时</span>
                        <div class="jishi-container">
                            <div class="jishi-card">
                                <div class="jishi-time">卯时</div>
                                <div class="jishi-tip">5:00-7:00</div>
                            </div>
                            <div class="jishi-card">
                                <div class="jishi-time">午时</div>
                                <div class="jishi-tip">11:00-13:00</div>
                            </div>
                        </div>
                    </div>
                    <div class="huangli-item" style="grid-column: 1 / -1;">
                        <span class="item-label label-taishen">胎神</span>
                        <div class="taishen-container">
                            <div class="taishen-icon">🏠</div>
                            <div class="taishen-info">
                                <div class="taishen-location" id="hlTaiShen">占门厕、外正西</div>
                                <div class="taishen-tip">胎神所在位置，宜静忌动，尤其孕妇家庭需注意</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="topic-list">
            <div class="topic-item">
                <div class="topic-domain">职场/成长号</div>
                <div class="topic-title">《周一不想上班？3个“5分钟启动法”：从“拖延”到“进入状态”只需一步》</div>
            </div>
            <div class="topic-item">
                <div class="topic-domain">生活/家居号</div>
                <div class="topic-title">《寒露后家里要“忌2事”：别让湿气缠上你！1个简单收纳技巧，房间瞬间干爽》</div>
            </div>
            <div class="topic-item">
                <div class="topic-domain">新媒体/运营号</div>
                <div class="topic-title">《别再乱追热点！这2类“长尾选题”：发布7天还在涨阅读，新手也能写》</div>
            </div>
            <div class="topic-item">
                <div class="topic-domain">母婴/育儿号</div>
                <div class="topic-title">《宝宝寒露后总感冒？3个“居家保暖细节”：比穿厚衣服更管用，新手妈妈必看》</div>
            </div>
        </div>

        <div class="guide">
            <div class="guide-title">✨ 领取更多选题福利</div>
            <div class="guide-list">
                <div class="guide-item">
                    <div class="guide-icon">1</div>
                    <span>觉得选题实用？记得点击<span class="guide-btn">“关注+收藏”</span>，每天获取新灵感</span>
                </div>
                <div class="guide-item">
                    <div class="guide-icon">2</div>
                    <span>回复公众号<span class="guide-btn">【选题库】</span>，免费领100+各领域爆款选题模板</span>
                </div>
            </div>
        </div>
    </div>

    <script>
        const now = new Date();
        const year = now.getFullYear();
        const month = now.getMonth() + 1;
        const date = now.getDate();
        const weekList = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
        const week = weekList[now.getDay()];

        document.getElementById("dateNum").textContent = date;
        document.getElementById("dateWeek").textContent = week;
        document.getElementById("dateYear").textContent = `${year}年${month}月`;

        const solarTerms = [
            {month:1, day:5, name:"小寒"}, {month:1, day:20, name:"大寒"},
            {month:2, day:4, name:"立春"}, {month:2, day:19, name:"雨水"},
            {month:3, day:5, name:"惊蛰"}, {month:3, day:20, name:"春分"},
            {month:4, day:4, name:"清明"}, {month:4, day:20, name:"谷雨"},
            {month:5, day:5, name:"立夏"}, {month:5, day:21, name:"小满"},
            {month:6, day:5, name:"芒种"}, {month:6, day:21, name:"夏至"},
            {month:7, day:7, name:"小暑"}, {month:7, day:23, name:"大暑"},
            {month:8, day:7, name:"立秋"}, {month:8, day:23, name:"处暑"},
            {month:9, day:7, name:"白露"}, {month:9, day:23, name:"秋分"},
            {month:10, day:8, name:"寒露"}, {month:10, day:23, name:"霜降"},
            {month:11, day:7, name:"立冬"}, {month:11, day:22, name:"小雪"},
            {month:12, day:7, name:"大雪"}, {month:12, day:22, name:"冬至"}
        ];
        const currentTerm = solarTerms.find(term => term.month === month && term.day <= date) || solarTerms[solarTerms.length - 1];
        const termDiff = (currentTerm.month === 12 && month === 1) ? (31 - currentTerm.day + date) : (date - currentTerm.day);
        document.getElementById("dateTerm").textContent = `${currentTerm.name}后${termDiff}天`;
    </script>
</body>
</html>